export default {
    setspecslist(state, payload) {
        state.specslist = payload
    },
    setspecsTitle(state, payload) {
        state.specsTitle = payload
    },
    setspecsinfo(state, payload) {
        state.specsinfo = payload
    },
    setspecscount(state, payload) {
        for (var key in payload) {
            state.page[key]= payload[key]
        }
        state.page.totalPage = Math.ceil(state.page.total / state.page.size)
    },
}